package com.zenith.edu.po.dto;

import com.zenith.common.base.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(name = "EduQuestionDTO", description = "题目DTO")
public class EduQuestionDTO extends BaseDTO {
    
    @Schema(description = "主键ID")
    private Long id;
    
    @Schema(description = "所属题库ID")
    private Long bankId;
    
    @Schema(description = "题型：1-单选 2-多选 3-判断 4-填空 5-问答")
    private Integer qType;
    
    @Schema(description = "题干")
    private String stem;
    
    @Schema(description = "选项（JSON数组）")
    private String options;
    
    @Schema(description = "正确答案")
    private String answer;
    
    @Schema(description = "解析")
    private String explanation;
    
    @Schema(description = "难度：1-易 2-中 3-难")
    private Integer difficulty;
    
    @Schema(description = "题目分值")
    private BigDecimal score;
    
    @Schema(description = "状态：1-正常 2-禁用")
    private Integer status;
}